package com.example.firstjavamqtt.model.device;

import com.example.firstjavamqtt.Constants.DeviceTypeConstants;
import com.example.firstjavamqtt.model.base.Device;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.stereotype.Component;

@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "红外人体检测模块")
@Data
@Component
public class InfraredMonitor extends Device {

    @ApiModelProperty("是否告警")
    private int alarm;

    {
        super.setDeviceType(DeviceTypeConstants.INFRARED);
    }
}
